import java.sql.Connection;
import java.sql.DriverManager;

import com.dhtmlx.connector.*;

public class grid_xx_sample_oracle_connector extends ConnectorServlet {

	@Override
	protected void configure() {
		Connection conn=null;
		try {
			Class.forName ("oracle.jdbc.OracleDriver").newInstance ();
			conn = DriverManager.getConnection("jdbc:oracle:thin:@192.168.13.128:1521:XE","HR","2");
		} catch (Throwable e) {
			e.printStackTrace();
		}
		
		GridConnector c = new GridConnector(conn, DBType.Oracle);
		c.dynamic_loading(100);
		((DBDataWrapper)c.sql).sequence("EMPLOYEES_INC.nextVal");
		c.render_table("EMPLOYEES","EMPLOYEE_ID","FIRST_NAME,LAST_NAME");

	}

}
